\hypertarget{gps_8h}{\section{E\-:/\-C\-O\-D\-I\-N\-G/arduino-\/1.0/libraries/gps/gps.h File Reference}
\label{gps_8h}\index{E\-:/\-C\-O\-D\-I\-N\-G/arduino-\/1.\-0/libraries/gps/gps.\-h@{E\-:/\-C\-O\-D\-I\-N\-G/arduino-\/1.\-0/libraries/gps/gps.\-h}}
}


Header for G\-P\-S utility library \hyperlink{gps_8cpp}{gps.\-cpp}.  


{\ttfamily \#include \char`\"{}gps\-\_\-setup.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Arduino.\-h\char`\"{}}\\*
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{classgps}{gps}
\begin{DoxyCompactList}\small\item\em gps class \end{DoxyCompactList}\item 
struct \hyperlink{structgps_1_1_r_m_cstr}{gps\-::\-R\-M\-Cstr}
\begin{DoxyCompactList}\small\item\em Struct to work with \$\-G\-P\-R\-M\-C string. \end{DoxyCompactList}\item 
struct \hyperlink{structgps_1_1time__s}{gps\-::time\-\_\-s}
\begin{DoxyCompactList}\small\item\em time struct \end{DoxyCompactList}\item 
struct \hyperlink{structgps_1_1date__s}{gps\-::date\-\_\-s}
\begin{DoxyCompactList}\small\item\em date struct \end{DoxyCompactList}\item 
struct \hyperlink{structgps_1_1_gps_info__s}{gps\-::\-Gps\-Info\-\_\-s}
\begin{DoxyCompactList}\small\item\em General gps info. \end{DoxyCompactList}\item 
struct \hyperlink{structgps_1_1channel__s}{gps\-::channel\-\_\-s}
\begin{DoxyCompactList}\small\item\em channel information \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\hypertarget{gps_8h_a1daf785e3f68d293c7caa1c756d5cb74}{\#define \hyperlink{gps_8h_a1daf785e3f68d293c7caa1c756d5cb74}{pi}~3.\-14159265}\label{gps_8h_a1daf785e3f68d293c7caa1c756d5cb74}

\begin{DoxyCompactList}\small\item\em pi \end{DoxyCompactList}\item 
\hypertarget{gps_8h_a5c71a5e59a53413cd6c270266d63b031}{\#define \hyperlink{gps_8h_a5c71a5e59a53413cd6c270266d63b031}{R}~6371}\label{gps_8h_a5c71a5e59a53413cd6c270266d63b031}

\begin{DoxyCompactList}\small\item\em Earth's radius. \end{DoxyCompactList}\item 
\#define \hyperlink{gps_8h_ab5d59680aa9d3d5739abf9842e87b455}{T\-Y\-P\-E\-\_\-\-L\-A\-T}~1
\begin{DoxyCompactList}\small\item\em Latitude type. \end{DoxyCompactList}\item 
\#define \hyperlink{gps_8h_a1d27c1fc0ada9dc33440b4f88b1a5ef0}{T\-Y\-P\-E\-\_\-\-L\-O\-N}~2
\begin{DoxyCompactList}\small\item\em Longitute type. \end{DoxyCompactList}\item 
\#define \hyperlink{gps_8h_a63fa90f191fafc997382f5c813d0da97}{N\-M\-E\-A\-\_\-\-R\-M\-C}~1
\begin{DoxyCompactList}\small\item\em N\-M\-E\-A T\-Y\-P\-E R\-M\-C. \end{DoxyCompactList}\item 
\#define \hyperlink{gps_8h_a28a8dd0c639c486c4b3b57427a8e4719}{N\-M\-E\-A\-\_\-\-P\-M\-T\-K\-C\-H\-N}~2
\begin{DoxyCompactList}\small\item\em N\-M\-E\-A T\-Y\-P\-E M\-T\-K C\-H\-N. \end{DoxyCompactList}\item 
\#define \hyperlink{gps_8h_ae4b48f90c078751cbbb179b2d85d6f73}{N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-F\-O\-R\-M\-A\-T}~(-\/1)
\begin{DoxyCompactList}\small\item\em format error \end{DoxyCompactList}\item 
\#define \hyperlink{gps_8h_a2251ae7c698ee31e61e606085442c9e7}{N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-C\-H\-E\-C\-K\-S\-U\-M}~(-\/2)
\begin{DoxyCompactList}\small\item\em checksum error \end{DoxyCompactList}\item 
\hypertarget{gps_8h_a00badda859abd358ff02da5d62808214}{\#define {\bfseries V\-A\-L\-I\-D\-\_\-\-A\-C\-T\-I\-V\-E}~0x41}\label{gps_8h_a00badda859abd358ff02da5d62808214}

\item 
\hypertarget{gps_8h_af5841d112d2ffeacb8df9aee472d4a4e}{\#define {\bfseries V\-A\-L\-I\-D\-\_\-\-V\-O\-I\-D}~0x56}\label{gps_8h_af5841d112d2ffeacb8df9aee472d4a4e}

\item 
\hypertarget{gps_8h_af142eb0359710cff0b4345efdbcfc08f}{\#define {\bfseries M\-O\-D\-E\-\_\-\-A\-U\-T\-O\-N\-O\-M\-O\-U\-S}~0x41}\label{gps_8h_af142eb0359710cff0b4345efdbcfc08f}

\item 
\hypertarget{gps_8h_a341a9baa08bbf11639ce73dc87beaf13}{\#define {\bfseries M\-O\-D\-E\-\_\-\-D\-I\-F\-F\-E\-R\-E\-N\-T\-I\-A\-L}~0x44}\label{gps_8h_a341a9baa08bbf11639ce73dc87beaf13}

\item 
\hypertarget{gps_8h_a20ff5cf330f7f0d9a05b811c9b08206d}{\#define {\bfseries M\-O\-D\-E\-\_\-\-E\-S\-T\-I\-M\-A\-T\-E\-D}~0x45}\label{gps_8h_a20ff5cf330f7f0d9a05b811c9b08206d}

\item 
\hypertarget{gps_8h_af98456070a63f454dbd60f56a7907616}{\#define {\bfseries T\-O\-T\-A\-L\-\_\-\-C\-H\-A\-N\-N\-E\-L}~(66)}\label{gps_8h_af98456070a63f454dbd60f56a7907616}

\item 
\hypertarget{gps_8h_a7ceb2742d3d40fda66d2730f3ae10077}{\#define {\bfseries S\-T\-A\-T\-U\-S\-\_\-\-C\-H\-N\-\_\-\-I\-D\-L\-E}~0}\label{gps_8h_a7ceb2742d3d40fda66d2730f3ae10077}

\item 
\hypertarget{gps_8h_ac821a286e5ee9452d5db6b182907ae5e}{\#define {\bfseries S\-T\-A\-T\-U\-S\-\_\-\-C\-H\-N\-\_\-\-S\-E\-A\-R\-C\-H\-I\-N\-G}~1}\label{gps_8h_ac821a286e5ee9452d5db6b182907ae5e}

\item 
\hypertarget{gps_8h_aa259e399b3e1f4f52e4e89d0490da818}{\#define {\bfseries S\-T\-A\-T\-U\-S\-\_\-\-C\-H\-N\-\_\-\-T\-R\-A\-C\-K\-I\-N\-G}~2}\label{gps_8h_aa259e399b3e1f4f52e4e89d0490da818}

\item 
\hypertarget{gps_8h_a334a01991f3b3b1dc58184667c0b9870}{\#define {\bfseries gps\-\_\-h}}\label{gps_8h_a334a01991f3b3b1dc58184667c0b9870}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Header for G\-P\-S utility library \hyperlink{gps_8cpp}{gps.\-cpp}. 

\subsection{Macro Definition Documentation}
\hypertarget{gps_8h_a2251ae7c698ee31e61e606085442c9e7}{\index{gps.\-h@{gps.\-h}!N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-C\-H\-E\-C\-K\-S\-U\-M@{N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-C\-H\-E\-C\-K\-S\-U\-M}}
\index{N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-C\-H\-E\-C\-K\-S\-U\-M@{N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-C\-H\-E\-C\-K\-S\-U\-M}!gps.h@{gps.\-h}}
\subsubsection[{N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-C\-H\-E\-C\-K\-S\-U\-M}]{\setlength{\rightskip}{0pt plus 5cm}\#define N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-C\-H\-E\-C\-K\-S\-U\-M~(-\/2)}}\label{gps_8h_a2251ae7c698ee31e61e606085442c9e7}


checksum error 

N\-M\-E\-A string has failed the checksum. \hypertarget{gps_8h_ae4b48f90c078751cbbb179b2d85d6f73}{\index{gps.\-h@{gps.\-h}!N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-F\-O\-R\-M\-A\-T@{N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-F\-O\-R\-M\-A\-T}}
\index{N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-F\-O\-R\-M\-A\-T@{N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-F\-O\-R\-M\-A\-T}!gps.h@{gps.\-h}}
\subsubsection[{N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-F\-O\-R\-M\-A\-T}]{\setlength{\rightskip}{0pt plus 5cm}\#define N\-M\-E\-A\-\_\-\-E\-R\-R\-\_\-\-F\-O\-R\-M\-A\-T~(-\/1)}}\label{gps_8h_ae4b48f90c078751cbbb179b2d85d6f73}


format error 

N\-M\-E\-A string has wrong format. \hypertarget{gps_8h_a28a8dd0c639c486c4b3b57427a8e4719}{\index{gps.\-h@{gps.\-h}!N\-M\-E\-A\-\_\-\-P\-M\-T\-K\-C\-H\-N@{N\-M\-E\-A\-\_\-\-P\-M\-T\-K\-C\-H\-N}}
\index{N\-M\-E\-A\-\_\-\-P\-M\-T\-K\-C\-H\-N@{N\-M\-E\-A\-\_\-\-P\-M\-T\-K\-C\-H\-N}!gps.h@{gps.\-h}}
\subsubsection[{N\-M\-E\-A\-\_\-\-P\-M\-T\-K\-C\-H\-N}]{\setlength{\rightskip}{0pt plus 5cm}\#define N\-M\-E\-A\-\_\-\-P\-M\-T\-K\-C\-H\-N~2}}\label{gps_8h_a28a8dd0c639c486c4b3b57427a8e4719}


N\-M\-E\-A T\-Y\-P\-E M\-T\-K C\-H\-N. 

N\-M\-E\-A T\-Y\-P\-E M\-T\-K C\-H\-N, G\-P\-S Channel information. \href{http://snoob-community.wikispaces.com/PMTKCHN}{\tt http\-://snoob-\/community.\-wikispaces.\-com/\-P\-M\-T\-K\-C\-H\-N} \hypertarget{gps_8h_a63fa90f191fafc997382f5c813d0da97}{\index{gps.\-h@{gps.\-h}!N\-M\-E\-A\-\_\-\-R\-M\-C@{N\-M\-E\-A\-\_\-\-R\-M\-C}}
\index{N\-M\-E\-A\-\_\-\-R\-M\-C@{N\-M\-E\-A\-\_\-\-R\-M\-C}!gps.h@{gps.\-h}}
\subsubsection[{N\-M\-E\-A\-\_\-\-R\-M\-C}]{\setlength{\rightskip}{0pt plus 5cm}\#define N\-M\-E\-A\-\_\-\-R\-M\-C~1}}\label{gps_8h_a63fa90f191fafc997382f5c813d0da97}


N\-M\-E\-A T\-Y\-P\-E R\-M\-C. 

N\-M\-E\-A T\-Y\-P\-E R\-M\-C, Recommended minimum data. \href{http://www.gpsinformation.org/dale/nmea.htm#RMC}{\tt http\-://www.\-gpsinformation.\-org/dale/nmea.\-htm\#\-R\-M\-C} \hypertarget{gps_8h_ab5d59680aa9d3d5739abf9842e87b455}{\index{gps.\-h@{gps.\-h}!T\-Y\-P\-E\-\_\-\-L\-A\-T@{T\-Y\-P\-E\-\_\-\-L\-A\-T}}
\index{T\-Y\-P\-E\-\_\-\-L\-A\-T@{T\-Y\-P\-E\-\_\-\-L\-A\-T}!gps.h@{gps.\-h}}
\subsubsection[{T\-Y\-P\-E\-\_\-\-L\-A\-T}]{\setlength{\rightskip}{0pt plus 5cm}\#define T\-Y\-P\-E\-\_\-\-L\-A\-T~1}}\label{gps_8h_ab5d59680aa9d3d5739abf9842e87b455}


Latitude type. 

Latitude type. To be used in Function 'dmtodd', param 'Lat\-Or\-Lon' \hypertarget{gps_8h_a1d27c1fc0ada9dc33440b4f88b1a5ef0}{\index{gps.\-h@{gps.\-h}!T\-Y\-P\-E\-\_\-\-L\-O\-N@{T\-Y\-P\-E\-\_\-\-L\-O\-N}}
\index{T\-Y\-P\-E\-\_\-\-L\-O\-N@{T\-Y\-P\-E\-\_\-\-L\-O\-N}!gps.h@{gps.\-h}}
\subsubsection[{T\-Y\-P\-E\-\_\-\-L\-O\-N}]{\setlength{\rightskip}{0pt plus 5cm}\#define T\-Y\-P\-E\-\_\-\-L\-O\-N~2}}\label{gps_8h_a1d27c1fc0ada9dc33440b4f88b1a5ef0}


Longitute type. 

Longitude Type. To be used in Function 'dmtodd', param 'Lat\-Or\-Lon' 